@extends('user.base.index')

@section('content')
    <div class="block-area" id="text-input">
                            <h3>@if (session('msg'))
                    {{ session('msg') }}
                @endif
            </h3> 
                <h3 class="block-title">用户信息修改</h3>

                <form action='/admin/user/{{ $user->id }}' method='post'>
                    <input type='hidden' name='_token' value='{{ csrf_token() }}'>
                    <input type='hidden' name='_method' value='PUT'>
                    <div class="row">

                        <div class="col-lg-2">
                           用户名: <input name='login_name' type="text" class="form-control m-b-10"  value='{{ $user->login_name }}'>
                        </div>
                        <div class="col-lg-2">
                           密码: <input name='password' type="text" class="form-control m-b-10"  value='{{ $user->password }}'>
                        </div>
                        <div class="col-lg-2">
                           性别: <select class="form-control input-sm m-b-10" name='sex'>
                                <option>---请选择---</option>
                                <option value='m' {{ $user->sex == 'm'?'selected':'' }}>男</option>
                                <option value='w' {{ $user->sex == 'w'?'selected':'' }}>女</option>
                            </select>
                        </div>
                         <div class="col-lg-2">
                            邮箱:<input name='email' type="text" class="form-control m-b-10"  value='{{ $user->email }}'>
                        </div>
                        <div class="col-lg-2">
                            会员等级:<input name='grade_id' type="text" class="form-control m-b-10"  value='{{ $user->grade_id }}'>
                        </div>
                        <div class='row'>
                            <div class="col-lg-12">
                                <input type='submit' class='btn' value='修改'>
                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </form>
    </div>
@stop

